import http from "../request.js";

// 修改密码短信发送
export function passwordSms(data) {
  return http.request({
    url: "/admin/login/passwordSms?mobile=" + data,
    method: "get",
  });
}
// 登录
export function userLogin(data) {
  return http.request({
    url: "/admin/login/login",
    method: "post",
    data,
  });
}
// 登录时查看账号
export function selectAccount(data) {
  return http.request({
    url: "/admin/login/selectAccount",
    method: "get",
    data,
  });
}
// 修改密码
export function updatePassword(data) {
  return http.request({
    url: "/admin/login/updatePassword",
    method: "post",
    data,
  });
}
// 获取登录信息
export function getLoginInfo(data) {
  return http.request({
    url: "/admin/login/getLoginInfo",
    method: "get",
    data,
  });
}
//获取权限点的信息
export function getPermissionsMenus(data) {
  return http.request({
    url: `/admin/login/selectMenuByAccount?account=${data}`,
    method: "get",
    data,
  });
}

//获取权限点的信息
// export function getPermissionsMenus(data) {
//   return http.request({
//     url: `/admin/login/selectMenuByAccount?account=13930482558`,
//     method: "get",
//     data,
//   });
// }